package org.example.springblog.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

//日期工具类
public class DateUtils {
    public static String formatDate(Date date) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        return sdf.format(date);
    }
}
